package com.linx.park.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.linx.common.mybatis.core.mapper.BaseMapperPlus;
import com.linx.park.domain.ParkPlace;
import com.linx.park.domain.bo.ParkPlaceBo;
import com.linx.park.domain.vo.ParkInfoVo;
import com.linx.park.domain.vo.ParkPlaceVo;
import com.linx.park.domain.vo.TenantVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 园区区域Mapper接口
 *
 * @author 泽智科技
 * @date 2024-10-06
 */
@Repository
public interface ParkPlaceBusinessMapper  extends BaseMapperPlus<ParkPlace, ParkPlaceVo>  {

    Page<ParkPlaceVo> selectPlaceBusinessList(@Param("query") ParkPlaceBo query, Page<ParkPlaceVo> page);

    List<ParkPlaceVo> selectParkTreeList(@Param(Constants.WRAPPER) Wrapper<ParkPlace> queryWrapper);
    int selectSysTenantNumByTenantId(String tenantId);
    int selectParkPlaceInfoNumById(Long parkInfoId);
    List<TenantVo> selectTenanList();
    TenantVo selectTenan(String tenantId);


     List<ParkInfoVo> selectParkListByUserId(@Param("userId")Long userId,@Param("parkInfoId")Long parkInfoId );

}
